package de.greenrobot.daoexample.model;

import java.io.Serializable;

/**
 * Created by hy on 2015/9/14.
 */
public class TimeLineSetting implements Serializable, Cloneable {
    private int coser;
    private int drawer;
    private int writer;
    private int traitor;
    private int daily;
    private int user_tuijian;
    private int group_post;
    private int group;
    private int zhipin;

    public TimeLineSetting(int coser, int drawer, int writer, int traitor, int daily) {
        this.coser = coser;
        this.drawer = drawer;
        this.writer = writer;
        this.traitor = traitor;
        this.daily = daily;
    }

    public TimeLineSetting() {
    }

    public int getCoser() {
        return coser;
    }

    public void setCoser(int coser) {
        this.coser = coser;
    }

    public int getDrawer() {
        return drawer;
    }

    public void setDrawer(int drawer) {
        this.drawer = drawer;
    }

    public int getWriter() {
        return writer;
    }

    public void setWriter(int writer) {
        this.writer = writer;
    }

    public int getTraitor() {
        return traitor;
    }

    public void setTraitor(int traitor) {
        this.traitor = traitor;
    }

    public int getDaily() {
        return daily;
    }

    public void setDaily(int daily) {
        this.daily = daily;
    }


    public int getGroup_post() {
        return group_post;
    }

    public void setGroup_post(int group_post) {
        this.group_post = group_post;
    }

    public int getUser_tuijian() {
        return user_tuijian;
    }

    public void setUser_tuijian(int user_tuijian) {
        this.user_tuijian = user_tuijian;
    }

    public int getGroup() {
        return group;
    }

    public void setGroup(int group) {
        this.group = group;
    }

    public int getZhipin() {
        return zhipin;
    }

    public void setZhipin(int zhipin) {
        this.zhipin = zhipin;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TimeLineSetting that = (TimeLineSetting) o;

        if (coser != that.coser) return false;
        if (drawer != that.drawer) return false;
        if (writer != that.writer) return false;
        if (traitor != that.traitor) return false;
        if (daily != that.daily) return false;
        if (user_tuijian != that.user_tuijian) return false;
        if (group_post != that.group_post) return false;
        if (group != that.group) return false;
        return zhipin == that.zhipin;

    }

    @Override
    public int hashCode() {
        int result = coser;
        result = 31 * result + drawer;
        result = 31 * result + writer;
        result = 31 * result + traitor;
        result = 31 * result + daily;
        result = 31 * result + user_tuijian;
        result = 31 * result + group_post;
        result = 31 * result + group;
        result = 31 * result + zhipin;
        return result;
    }

    @Override
    public Object clone() {
        TimeLineSetting o = null;
        try {
            o = (TimeLineSetting) super.clone();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return o;
    }
}
